package com.snake.repositories;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snake.mapper.AppSettingMapper;
import com.snake.models.ActivityAppSetting;
import com.snake.models.PermissionUser;


@Service
public class AppSettingServiceImpl implements AppSettingService {
	@Autowired
	private AppSettingMapper appSettingMapper;

	@Override
	public ActivityAppSetting add(ActivityAppSetting t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityAppSetting delete(ActivityAppSetting t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityAppSetting update(ActivityAppSetting t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityAppSetting getById(int id) {
		// TODO Auto-generated method stub
		Map<String, Object> params=new HashMap<String, Object>();
		params.put("appSettingId", id);
		 ActivityAppSetting byId = appSettingMapper.getById(params);
		return byId;
	}

	@Override
	public List<ActivityAppSetting> getByList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		List<ActivityAppSetting> byList = appSettingMapper.getByList(params);
		return byList;
	}

	
}
